﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <link rel="stylesheet" href="../source/bootstrap/dist/css/bootstrap.css">
    <link rel="stylesheet" href="../source/layui-v2.5.6/css/layui.css">
    <link href="../source/css/primary.css" rel="stylesheet"/>
    <link href="../window/css/livecoverage_win.css" rel="stylesheet"/>
    <script src="../source/jquery/dist/jquery.js"></script>
    <script src="../source/layer/layer.js"></script>
    <script src="../source/js/jquery.qrcode.min.js"></script>
    <script src="../source/js/JsBarcode.all.min.js"></script>
    <script src="../source/js/common_url.js"></script>
    <script src="../source/js/util.js"></script>
    <script src="../source/js/jquery.qrcode.min.js"></script>
    <script src="../window/js/livecoverage_win.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>现场报到</title>
</head>

<body class="theme-blue">
<input type="hidden" name="hid_sysId" id="hid_sysId" value="" />
<input type="hidden" name="hid_id" id="hid_id" value="" />
<input type="hidden" name="hid_queueId" id="hid_queueId" value="" />
<input type="hidden" name="hid_isSign" id="hid_isSign" value="" />
<input type="hidden" name="hid_deptId" id="hid_deptId" value="" />
<input type="hidden" name="hid_doctor" id="hid_doctor" value="" />
<input type="hidden" name="hid_doctor" id="hid_doctorName" value="" />
<!--<input type="hidden" name="hid_doctor_name" id="hid_doctor_name" value="" />-->
<input type="hidden" name="hid_registerObjKey" id="hid_registerObjKey" value="" />
<input type="hidden" name="hid_patId" id="hid_patId" value="" />
<input type="hidden" name="hid_patKey" id="hid_patKey" value="" />
<input type="hidden" name="hid_wuBie" id="hid_wuBie" value="" />
<input type="hidden" name="hid_deptName" id="hid_deptName" value="" />
<input type="hidden" name="hid_registerTime" id="hid_registerTime" value="" />

<input type="hidden" name="hid_registerId" id="hid_registerId" value="" />
<input type="hidden" name="hid_prePatientNum" id="hid_prePatientNum" value="" />
<!-- 查询就诊号 浮层-->
<div class="d_content" id="d_query">
    <div class="s_right" id="s_title">
        <span>请输入患者ID：</span>
        <div class="layui-input-inline">
            <input class="layui-input" type="text" autofocus name="text_patName" id="text_patName" value=""/>
        </div>
        <button class="layui-btn" onclick="readCard()">读卡</button>
    </div>
    <div class="tips">
        <p>扫码：鼠标位于输入框内，扫码后自动查询挂号信息</p>
        <p>读卡：将就诊卡/社保卡放置读卡器指定位置，点击读卡按钮自动查询挂号信息</p>
        <p>输入：人工输入卡号，点击查询按钮查询挂号信息</p>
    </div>
    <div class="d_bottom">
        <button class="layui-btn" onclick="queryPatInfoByInput();">查询</button>
        <div>
            <button class="layui-btn layui-btn-link" onclick="batchCheck();">批量报到</button>
        </div>
    </div>
</div>

<!-- 选择号别 浮层-->
<div class="d_contentlist" id="d_display" style="display: none;">
    <div class="d_body">
        <div class="t_title">
            <span>请选择要操作的号别：</span>
        </div>
        <div class="list" id="firstVisit" style="display: none;">
            <span>初诊:</span>
        </div>
        <div class="s_bdqueuelist"></div>
        <!--复诊-->
        <div class=" list" id="returnVisit" style="display: none;">
            <span>复诊:</span>
        </div>
        <div class="s_returnVisit"></div>
    </div>
    <div class="d_bottom list">
        <button class="layui-btn" id="tobd" onclick="goBd();">确定</button>
        <input class="layui-btn layui-btn-primary" type="button" name="name" value="取消" onclick="closeWin();"/>
    </div>
</div>

<!-- 报到-浮层-->
<div id="d_bd" style="display:none" class="d_bd">
    <div class="layui-form-item">
        <label class="layui-form-label">患者ID:</label>
        <div class="layui-input-block">
            <input type="text" id="txt_jznumber" name="txt_jznumber" value="" class="layui-input" readonly="readonly"/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">姓名:</label>
        <div class="layui-input-block">
            <input type="text" id="txt_patName" name="txt_patName" value="" class="layui-input" readonly="readonly"/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">队列:</label>
        <div class="layui-input-block">
            <select id="select_queue" name="select_queue" onchange="changeQueue();" ></select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">医生:</label>
        <div class="layui-input-block" id="doctorNameFirst">
            <input type="text" class="layui-input" name="txt_doctorName" id="txt_doctorName" readonly="readonly"/>
        </div>
        <div class="layui-input-block" id="doctorNameSecond">
            <select id="txt_doctorNames" name="txt_doctorName" onchange="changeDoctor();" ></select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">午别:</label>
        <div class="layui-input-block">
            <input type="text" name="txt_wb" id="txt_wb" value="" class="layui-input" readonly="readonly"/>
        </div>
    </div>
    <div id="color_buttons" class="layui-form-item">
        <label class="layui-form-label">预检:</label>
        <div class="layui-input-block">
            <button id="but_red" class="btn status-red" onclick="btnRed();"></button>
            <button id="but_yellow" class="btn status-yellow" onclick="btnYellow();"></button>
            <button id="but_green" class="btn status-green" onclick="btnGreen();"></button>
          <div id="msg-for-txt_pretestStage"></div>
        </div>
    </div>
    <div class="d_bottom">
      <button class="layui-btn" onclick="bd();">确定</button>
    </div>
</div>

<div id="print" style="display: none;width: 70mm; height: 70mm;">
    <table>
        <tr style="height: 6mm">
            <td colspan="2" style="text-align: center">
                <h2 style="font-family:'SimSun'; font-weight:900; margin-top: 0px;
    margin-bottom: 5px;"><span id="hospitalName"></span>报到凭证</h2>
            </td>
        </tr>
        <tr>
            <td colspan="2"
                style="width: 100%; height: 0; border: 0; border-top: 1px solid #000; line-height: 0;margin-bottom: 2px;">
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center" valign="middle" style="width: 100%; height: 5mm">
                <img id="lineCode" width="300px" height="40px" align="center" src="lineCodeTag"/>
            </td>
        </tr>
        <tr style="height: 5mm">
            <td style="width: 40%; text-align: right; font-size:20px; font-weight:900;">就诊号:</td>
            <td style="text-align: left; font-weight:700; font-size:20px;"><label id="registerId"/></td>
        </tr>
        <!--<tr style="height: 7mm">
              <td style="width: 40%; text-align: right; font-size:20px; font-weight:900;">患者ID:</td>
              <td style="text-align: left; font-size:20px;"><label id="patientId" /></td>
          </tr>-->
        <tr style="height: 5mm">
            <td style="width: 40%; text-align: right; font-size:20px; font-weight:900;">患者姓名:</td>
            <td style="text-align: left; font-size:20px;"><label id="patientName"/></td>
        </tr>
        <tr style="height: 5mm">
            <td style="width: 40%; text-align: right; font-size:20px; font-weight:900;">挂号科室:</td>
            <td style="text-align: left; font-size:20px;"><label id="deptName"/></td>
        </tr>
        <tr style="height: 5mm">
            <td style="width: 40%; text-align: right; font-size:20px; font-weight:900;">号别:</td>
            <td style="text-align: left; font-size:20px;"><label id="numType"/></td>
        </tr>
        <!--<tr style="height: 7mm">
              <td style="width: 40%; text-align: right; font-size:20px; font-weight:900;">午别:</td>
              <td style="text-align: left; font-size:20px;"><label id="wuBie" /></td>
          </tr>-->
        <tr style="height: 5mm">
            <td style="width: 40%; text-align: right; font-size:20px; font-weight:900;">挂号时间:</td>
            <td style="text-align: left; font-size:20px;"><label id="registerTime"/></td>
        </tr>
        <tr style="height: 5mm">
            <td style="width: 40%; text-align: right; font-size:20px; font-weight:900;">报到时间:</td>
            <td style="text-align: left; font-size:20px;"><label id="arrivalTime"/></td>
        </tr>
        <tr>
            <td colspan="2"
                style="width: 100%; height: 0; border: 0; border-top: 1px solid #000;line-height: 0;margin-bottom: 2px;"></td>
        </tr>
        <tr>
            <td colspan="2" style="width: 100%; text-align: left; font-size:22px; font-weight:900;">
                您前面还有<label id="prePatientNum"></label>人，请在候诊区耐心等待叫号！
            </td>
        </tr>
        <!--<tr>
              <td colspan="2" align="center" valign="middle" id="imgCode"><img id="imgCodeId" src="imgCodeTag" /></td>
          </tr>-->
    </table>
</div>
</body>

</html>
